home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher+1.2b4 / gopherd / gopherd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-15  |  2.4 KB  |  110 lines

  1. /********************************************************************
  2.  * lindner
  3.  * 3.3
  4.  * 1993/04/15 21:59:08
  5.  * /home/mudhoney/GopherSrc/CVS/gopher+/gopherd/gopherd.h,v
  6.  * $Status: $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: gopherd.h
  14.  * Header file for gopher server.
  15.  *********************************************************************
  16.  * Revision History:
  17.  * gopherd.h,v
  18.  * Revision 3.3  1993/04/15  21:59:08  lindner
  19.  * Fix for newer hpux systems
  20.  *
  21.  * Revision 3.2  1993/02/19  21:21:32  lindner
  22.  * Fixed problems with signals
  23.  *
  24.  * Revision 3.1.1.1  1993/02/11  18:02:51  lindner
  25.  * Gopher+1.2beta release
  26.  *
  27.  * Revision 1.1  1992/12/10  23:13:27  lindner
  28.  * gopher 1.1 release
  29.  *
  30.  *
  31.  *********************************************************************/
  32.  
  33.  
  34. #include "conf.h"
  35.  
  36. #include <ctype.h>
  37. #include <stdio.h>
  38.  
  39.  
  40. #include <sys/types.h>
  41. #include <sys/socket.h>
  42. #include <netinet/in.h>
  43. #include <netdb.h>
  44. #if !defined(hpux) || defined(__hpux)
  45. #include <arpa/inet.h>
  46. #endif
  47. #include <pwd.h>
  48. #include <errno.h>
  49.  
  50. #include <signal.h>
  51.  
  52. /** For logfile locking... **/
  53. #if !defined(NeXT) && !defined(mips) && !defined(UMAX43) && !defined(sequent) && !defined(sony_news)
  54. #  include <unistd.h>
  55. #  include <fcntl.h>
  56. #else
  57. #  include <fcntl.h>
  58. #  include <sys/file.h>
  59. #  ifndef SEEK_END
  60. #    define SEEK_END L_XTND
  61. #    define SEEK_SET L_SET
  62. #  endif
  63. #endif
  64.  
  65. extern int errno;
  66.  
  67. #include "String.h"
  68.  
  69. #include <sys/stat.h>
  70. #include <time.h>
  71.  
  72. #include <sys/param.h>
  73. /* This might be in <sys/param.h>, usually 64 */
  74. #ifndef MAXHOSTNAMELEN
  75. #define MAXHOSTNAMELEN                (64)
  76. #endif
  77.  
  78. #ifndef NOFILE
  79. #define NOFILE (100)
  80. #endif
  81.  
  82. #ifndef MAXPATHLEN
  83. #define MAXPATHLEN (512)
  84. #endif
  85.  
  86.  
  87.  
  88. #include "GDgopherdir.h"
  89. #include "Dirent.h"
  90.  
  91. /*
  92.  * Make sure we don't accidentally use a library routine instead of our
  93.  * private restricted version.  Need to avoid the stat in struct stat
  94.  * getting clobbered by the #define for the routine.
  95.  */
  96. typedef struct stat STATSTR;
  97. #include "openers.h"
  98. #define open    barf_ropen
  99. #define fopen    barf_rfopen
  100. #define stat    barf_rstat
  101. #define opendir    barf_ropendir
  102. #define chdir    barf_rchdir
  103.  
  104. #include "compatible.h"
  105. #include "util.h"
  106. #include "gopherdconf.h"
  107.  
  108. /*** This one must be last ***/
  109. #include "globals.h"
  110.